package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.GoodsTag;

import java.util.List;

@DBMapper
public interface GoodsTagMapper {
    int deleteByPrimaryKey(Integer tagId);

    int insert(GoodsTag record);

    int insertSelective(GoodsTag record);

    GoodsTag selectByPrimaryKey(Integer tagId);

    int updateByPrimaryKeySelective(GoodsTag record);

    int updateByPrimaryKey(GoodsTag record);

    /**
     * 根据条件查询
     * @param goodsTag
     * @return
     */
    List<GoodsTag> selectListByCondition(GoodsTag goodsTag);

    List<GoodsTag> selectGoodsTagByCondition(GoodsTag goodsTag);
}